package com.agileboot.domain.performance.teaching.dto;

import cn.hutool.core.bean.BeanUtil;
import com.agileboot.common.annotation.ExcelColumn;
import com.agileboot.domain.performance.teaching.db.TeachingWorkloadEntity;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 教学工作量数据传输对象
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class TeachingWorkloadDTO {

    public TeachingWorkloadDTO(TeachingWorkloadEntity entity) {
        if (entity != null) {
            BeanUtil.copyProperties(entity, this);
        }
    }

    @ExcelColumn(name = "教学工作量ID")
    private Long id;

    @ExcelColumn(name = "教职工ID")
    private Long userId;

    @ExcelColumn(name = "用户姓名")
    private String userName;

    @ExcelColumn(name = "所属部门")
    private String deptName;

    @ExcelColumn(name = "考核年度")
    private Integer assessmentYear;

    @ExcelColumn(name = "通识课程得分")
    private Double generalCourseScore;

    @ExcelColumn(name = "学科课程得分")
    private Double subjectCourseScore;

    @ExcelColumn(name = "实验课程得分")
    private Double labCourseScore;

    @ExcelColumn(name = "教学工作量总分")
    private Double totalTeachingScore;

    @ExcelColumn(name = "导入时间")
    private String importedAt;

    @ExcelColumn(name = "导入操作人ID")
    private Long importedByUserId;

    @ExcelColumn(name = "导入操作人姓名")
    private String importedByUserName;

    private Date createTime;

}
